package com.dengyuanke.strategypattern;

import java.math.BigDecimal;

/**
 * Created by dengyuanke on 2017/8/24.
 */
public class Price {
    private MemberStrategy strategy;

    public Price(){
    }

    public Price(MemberStrategy strategy){
        this.strategy=strategy;
    }

    public BigDecimal getPirce(BigDecimal price){
        return strategy.price(price);
    }
}
